home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / contrib / printtim.sty < prev    next >
Encoding:
Text File  |  1995-03-15  |  3.3 KB  |  90 lines

  1. %% 
  2. %% This is file `printtim.sty', generated 
  3. %% on <1995/3/5> with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% printtim.dtx  (with options: `package')
  8. %% 
  9. %% Copyright (C) 1995 by Martin Schroeder. All rights reserved. 
  10. %% 
  11. %% 
  12. %% This file is part of the PrintTim package 
  13. %% 
  14. %% IMPORTANT NOTICE: 
  15. %% 
  16. %% You are not allowed to change this file. You may however copy this file 
  17. %% to a file with a different name and then change the copy. 
  18. %% 
  19. %% You are NOT ALLOWED to distribute this file alone. You are NOT ALLOWED 
  20. %% to take money for the distribution or use of this file (or a changed 
  21. %% version) except for a nominal charge for copying etc. 
  22. %% 
  23. %% You are allowed to distribute this file under the condition that it is 
  24. %% distributed together with all files mentioned below. 
  25. %% 
  26. %% If you receive only some of these files from someone, complain! 
  27. %% 
  28. %% Error Reports in case of UNCHANGED versions to 
  29. %% 
  30. %% Martin Schroeder 
  31. %% Friedrich-Humbert-Strasse 124 
  32. %% D-28759 Bremen 
  33. %% Internet: <MS@Dream.HB.North.DE> 
  34. %% 
  35. %% File: printtim.dtx Copyright (C) 1995 Martin Schr\"oder 
  36. \NeedsTeXFormat{LaTeX2e} 
  37. \ProvidesPackage{printtim} 
  38.          [1995/01/24 v1.00 PrintTime Package (MS)] 
  39. %% \CharacterTable 
  40. %% {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 
  41. %%  Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z 
  42. %%  Digits        \0\1\2\3\4\5\6\7\8\9 
  43. %%  Exclamation   \!     Double quote  \"     Hash (number) \# 
  44. %%  Dollar        \$     Percent       \%     Ampersand     \& 
  45. %%  Acute accent  \'     Left paren    \(     Right paren   \) 
  46. %%  Asterisk      \*     Plus          \+     Comma         \, 
  47. %%  Minus         \-     Point         \.     Solidus       \/ 
  48. %%  Colon         \:     Semicolon     \;     Less than     \< 
  49. %%  Equals        \=     Greater than  \>     Question mark \? 
  50. %%  Commercial at \@     Left bracket  \[     Backslash     \\ 
  51. %%  Right bracket \]     Circumflex    \^     Underscore    \_ 
  52. %%  Grave accent  \`     Left brace    \{     Vertical bar  \| 
  53. %%  Right brace   \}     Tilde         \~} 
  54. %% 
  55. %% \iffalse meta-comment 
  56. %% =================================================================== 
  57. %%  @LaTeX-package-file{ 
  58. %%     author          = {Martin Schr\"oder}, 
  59. %%     version         = "1.00", 
  60. %%     date            = "24 January 1995", 
  61. %%     filename        = "printtim.sty", 
  62. %%     address         = {Martin Schr\"oder 
  63. %%                        Friedrich-Humbert-Stra\ss{}e 124 
  64. %%                        D-28759 Bremen 
  65. %%     telephone       = "+49-421-628813", 
  66. %%     email           = "MS@Dream.HB.North.DE (INTERNET)", 
  67. %%     codetable       = "ISO/ASCII", 
  68. %%     keywords        = "LaTeX2e, \time", 
  69. %%     supported       = "yes", 
  70. %%     docstring       = "LaTeX package which defines a command 
  71. %%                        \PrintTime which prints the current time". 
  72. %%  } 
  73. %% =================================================================== 
  74. %% \fi 
  75. \newcommand*{\PrintTime}{% 
  76.    \bgroup% 
  77.       \count\@cclv=\time 
  78.       \divide  \count\@cclv by 60\relax 
  79.       \the\count\@cclv% 
  80.       :% 
  81.       \multiply\count\@cclv by -60\relax 
  82.       \advance \count\@cclv by \time 
  83.       \ifnum\count\@cclv<10\relax 0\fi 
  84.       \the\count\@cclv% 
  85.    \egroup% 
  86.    } 
  87. \endinput
  88. %% 
  89. %% End of file `printtim.sty'.
  90.